"""
@File    ：el_login.py
@Author  ：sarah
@Date    ：2023-07-21
@Desc    ：登录界面的元素信息
"""

from selenium.webdriver.common.by import By

byid = By.ID
byname = By.NAME
bycname = By.CLASS_NAME
bytname = By.TAG_NAME
bylink = By.LINK_TEXT
bycss = By.CSS_SELECTOR
byxpath = By.XPATH

# 登录界面元素配置信息
login_window = byxpath, '//*[@id="login"]/div/div[1]/div'
login_username = byxpath, '//*[@placeholder="用户名"]'
login_pwd = byid, 'password'
login_err_info = bycss, '.el-message__content'
login_btn = byxpath, '//*[text()="登录"]'
logout_btn = byxpath, '//*[@id="login"]/div/div[2]/div/form/div[4]/div/span[3]'
logout_cancel = byxpath, '/html/body/div[2]/div/div[3]/button[1]'
logout_confirm = byxpath, '/html/body/div[2]/div/div[3]/button[2]'
